<ng-container *ngIf="!isembeddedView">
<ion-header class="app-view-header">
    <ion-toolbar class="app-view-toolbar" color="primary">
        <ion-buttons  slot="start"  class="app-toolbar-left-buttons">
            <ion-button  (click)="editBackView()">
                <ion-icon name="arrow-back"></ion-icon>
                返回
            </ion-button>
        </ion-buttons>
        <ion-title class="app-view-title">请假</ion-title>
        <ion-buttons  slot="end"  class="app-toolbar-right-buttons">
        <div class="app-mob-toolbar ">
        <div >
                <ion-button class="app-view-toolbar-button" (click)="righttoolbar_click({ tag: 'tbitem1' }, $event)">
                 <ion-icon name="sx-tb-saveandclose" src="../sasrfex/images/default/icon_saveandclose.png"></ion-icon>
                  保存
            </ion-button>
        
            <ion-button class="app-view-toolbar-button" (click)="openActionSheet('tbitem2')">
                  操作
              </ion-button>
        </div>
        </div>
        </ion-buttons>
    </ion-toolbar>
</ion-header>
<ion-content  class="app-view app-view-mobwfeditview  qjqjsp-d-mob-wfedit-view">
<div class="app-view-body">
    <div>
        <ctrl-main-form   [isembeddedView]="isembeddedView"  [isModalMode]="isModalMode"  [viewState]="viewState"  [updateAction]="'update'"  [removeAction]="'remove'"  [loaddraftAction]="'getdraft'"  [loadAction]="'get'"[wfsubmitAction]="'wfsubmit'"  [createAction]="'create'"[wfstartAction]="'wfstart'" [name]="'form'" (saveemit)="form_save($event)" (removeemit)="form_remove($event)" (loademit)="form_load($event)" ></ctrl-main-form>
    </div>
    <div>
        <div class="app-mob-toolbar ">
            <ion-footer class="app-view-footer">
                <div class="app-quick-toolbar">
                    <ng-container *ngFor="let element of actionBtns">
                        <ion-button class="app-quick-toolbar-item" expand="block" (click)="wflink_click(element, $event)">
                        <ion-icon name="fa fa-play"></ion-icon>{{element.name}}</ion-button>
                    </ng-container>          
                </div>
            </ion-footer>
        </div>
    </div>
</div>

</ion-content>
</ng-container>
<ng-container *ngIf="isembeddedView">
    <div class="app-view app-embedded-mobwfeditview  qjqjsp-d-mob-wfedit-view">
        <ng-container *ngIf="!isTabexp">
        <div class="app-view-embedded">
            <div>请假</div>
            <div  class="app-view-embedded-icon"><ion-icon name="more" (click)="click_more()"></ion-icon></div>
        </div>
        </ng-container>
        <div class="app-view-body">
            <div>
                <ctrl-main-form   [isembeddedView]="isembeddedView"  [isModalMode]="isModalMode"  [viewState]="viewState"  [updateAction]="'update'"  [removeAction]="'remove'"  [loaddraftAction]="'getdraft'"  [loadAction]="'get'"[wfsubmitAction]="'wfsubmit'"  [createAction]="'create'"[wfstartAction]="'wfstart'" [name]="'form'" (saveemit)="form_save($event)" (removeemit)="form_remove($event)" (loademit)="form_load($event)" ></ctrl-main-form>
            </div>
            <div>
            <div class="app-mob-toolbar ">
                <ion-footer class="app-view-footer">
                    <div class="app-quick-toolbar"  #actionBtns>
                        <ng-container *ngFor="let element of actionBtns">
                            <ion-button class="app-quick-toolbar-item" expand="block" (click)="wflink_click(element, $event)">
                            <ion-icon name="fa fa-play"></ion-icon>{{element.name}}</ion-button>
                        </ng-container>       
                    </div>
                </ion-footer>
            </div>
            </div>
        </div>
    </div>
</ng-container>

